.class Lcom/renren/api/connect/android/AccessTokenManager$2;
.super Ljava/lang/Object;
.source "AccessTokenManager.java"

# interfaces
.implements Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/renren/api/connect/android/AccessTokenManager;->compareWithConfig()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/renren/api/connect/android/AccessTokenManager;

.field private final synthetic val$sp:Landroid/content/SharedPreferences;


# direct methods
.method constructor <init>(Lcom/renren/api/connect/android/AccessTokenManager;Landroid/content/SharedPreferences;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->this$0:Lcom/renren/api/connect/android/AccessTokenManager;

    iput-object p2, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->val$sp:Landroid/content/SharedPreferences;

    .line 189
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V
    .locals 8
    .parameter "sharedPreferences"
    .parameter "key"

    .prologue
    const/4 v6, 0x0

    .line 194
    iget-object v4, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->val$sp:Landroid/content/SharedPreferences;

    const-string v5, "renren_sdk_config_prop_session_key"

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 196
    .local v0, sKey:Ljava/lang/String;
    iget-object v4, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->val$sp:Landroid/content/SharedPreferences;

    .line 197
    const-string v5, "renren_sdk_config_prop_session_secret"

    .line 196
    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 198
    .local v1, secret:Ljava/lang/String;
    iget-object v4, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->val$sp:Landroid/content/SharedPreferences;

    const-string v5, "renren_sdk_config_prop_user_id"

    const-wide/16 v6, 0x0

    invoke-interface {v4, v5, v6, v7}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v2

    .line 199
    .local v2, userId:J
    iget-object v4, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->this$0:Lcom/renren/api/connect/android/AccessTokenManager;

    invoke-static {v4}, Lcom/renren/api/connect/android/AccessTokenManager;->access$0(Lcom/renren/api/connect/android/AccessTokenManager;)Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->this$0:Lcom/renren/api/connect/android/AccessTokenManager;

    invoke-static {v4}, Lcom/renren/api/connect/android/AccessTokenManager;->access$0(Lcom/renren/api/connect/android/AccessTokenManager;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_4

    .line 200
    :cond_0
    iget-object v4, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->this$0:Lcom/renren/api/connect/android/AccessTokenManager;

    invoke-static {v4}, Lcom/renren/api/connect/android/AccessTokenManager;->access$1(Lcom/renren/api/connect/android/AccessTokenManager;)Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_1

    iget-object v4, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->this$0:Lcom/renren/api/connect/android/AccessTokenManager;

    invoke-static {v4}, Lcom/renren/api/connect/android/AccessTokenManager;->access$0(Lcom/renren/api/connect/android/AccessTokenManager;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_4

    .line 201
    :cond_1
    iget-object v4, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->this$0:Lcom/renren/api/connect/android/AccessTokenManager;

    invoke-static {v4}, Lcom/renren/api/connect/android/AccessTokenManager;->access$0(Lcom/renren/api/connect/android/AccessTokenManager;)Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_2

    if-nez v0, :cond_4

    .line 202
    :cond_2
    iget-object v4, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->this$0:Lcom/renren/api/connect/android/AccessTokenManager;

    invoke-static {v4}, Lcom/renren/api/connect/android/AccessTokenManager;->access$1(Lcom/renren/api/connect/android/AccessTokenManager;)Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_3

    if-nez v1, :cond_4

    .line 203
    :cond_3
    iget-object v4, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->this$0:Lcom/renren/api/connect/android/AccessTokenManager;

    invoke-static {v4}, Lcom/renren/api/connect/android/AccessTokenManager;->access$2(Lcom/renren/api/connect/android/AccessTokenManager;)J

    move-result-wide v4

    cmp-long v4, v4, v2

    if-eqz v4, :cond_5

    .line 204
    :cond_4
    iget-object v4, p0, Lcom/renren/api/connect/android/AccessTokenManager$2;->this$0:Lcom/renren/api/connect/android/AccessTokenManager;

    invoke-static {v4}, Lcom/renren/api/connect/android/AccessTokenManager;->access$3(Lcom/renren/api/connect/android/AccessTokenManager;)V

    .line 206
    :cond_5
    return-void
.end method
